package com.dnjn.happiness.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 站点 二级部门单拉出来做站点
 * </p>
 *
 * @author Amber
 * @since 2023-10-05
 */
@Getter
@Setter
@TableName("sys_site")
@Accessors(chain = true)
public class SysSite extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "site_id", type = IdType.ASSIGN_ID)
    private Long siteId;

    private String siteName;

    @TableField(exist = false)
    private LocalDate currDate;

    private String addressline;

    /**
     * sys_dept.dept_id
     */
    private Long deptId;

    /**
     * 平均快乐值
     */
    private Integer avgScore;

    private  Integer numberOfPeople;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
}
